import { CommonType } from '@/common/dto/common.type';
import { CourseType } from '@/modules/course/dto/course.type';
import { Field, ObjectType } from '@nestjs/graphql';
@ObjectType()
export class CardType extends CommonType {
  @Field({
    description: '名称',
    nullable: true,
  })
  name: string;
  @Field({
    description: '卡类型',
    nullable: true,
  })
  type: string;
  @Field({
    description: '上课次数',
    nullable: true,
  })
  time: number;
  @Field({
    description: '有效期(天)',
    nullable: true,
  })
  validityDay: number;

  //   用于测试
  @Field(() => CourseType, {
    description: '课程',
    nullable: true,
  })
  course: CourseType;
}
